package zhtt.hibernate.user.repository;

import org.springframework.data.repository.CrudRepository;
import zhtt.hibernate.user.entity.User;

import java.util.List;

public interface UserRepository extends CrudRepository<User, Long>{

	List<User> findByName(String name);

	User getUserById(Long id);

}
